// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import Vue from 'vue'
import App from './App'
import router from './router'
import axios from './http'
import alerts from './alert' // 全局弹窗组件
import loading from './loading' // 全局loading组件
import store from './store/store'
import $ from 'jquery'

Vue.prototype.$http = axios
Vue.config.productionTip = false
Vue.use(alerts)
Vue.use(loading)
Vue.prototype.$ = Vue.prototype.jQuery = window.$ = $ // 引入jquery

/* eslint-disable no-new */
new Vue({
  el: '#app',
  router,
  store,
  components: { App },
  template: '<App/>'
})
